FROM java:openjdk-8-alpine
VOLUME /tmp
ADD aliyuncall-1.0.jar app.jar
RUN sh -c 'touch /app.jar'
ENV JAVA_OPTS="-Xmx1g -Xms1g -server -Xmn256m"
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]